package chapter7.No7_2_线程组.d获取根线程组;

/**
 * !
 *
 * @author liujian
 * @version 2016/12/8 0008
 */
public class Main {
    public static void main(String[] args) {
        System.out.println("线程名：" + Thread.currentThread().getName());
        System.out.println("main线程所属的组名：" + Thread.currentThread().getThreadGroup().getName());
        System.out.println("main组的父亲组名是：" + Thread.currentThread().getThreadGroup().getParent().getName());
    }
}
